<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>测试界面</title>
<script type="text/javascript" src="js/jquery.min.js" ></script>
</head>
<body >
	<div align="center" style="color:red">
		<h1 >hello 测试界面</h1>
		<input type = "button" onclick="toUrl();">
	</div>
</body>

<script>
var url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf3e807fb8699fcf2&redirect_uri=http%3A%2F%2F5beans.cn%2FwechatMP"
+"%2Flogin.html&response_type=code&scope=snsapi_base&state=6#wechat_redirect"
function toUrl(){
	alert(url);
	window.href=url;
}


</script>

</html>